<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>测试Forward转发</title>
		<!-- 设置不缓存 -->
		<meta http-equiv="pragma" content="no-cache" />
		<meta http-equiv="cache-control" content="no-cache" />
		<meta http-equiv="expires" content="0" />
	</head>
	<body>
		<h1>测试Forward转发</h1>
		<h2>Forward转发：起始页面</h2>
		<br>
		
	    <%
	    request.setAttribute("abc02","abcdef-111111111");
	     %>
	    <jsp:forward page="forward_from.jsp">
	    	<jsp:param name="abc01" value="abcdef-00000000"/>
	    </jsp:forward>
	    
	    <%
	    //方法二：javs脚本方法的转发
	    //request.getRequestDispatcher("/forward_from.jsp").forward(request,response);
	    //重定向
	    //response.sendRedirect("/forward_to.jsp");//此方式会丢失传递的参数
	     %>
  </body>
</html>
